package com.tzy.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 我的足迹表
 * </p>
 *
 * @author ljh
 * @since 2022-03-13
 */
@TableName("my_footprint")
@Data
public class MyFootprint implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableField(exist = false)
    private Shop shop;
    /**
     * 足迹编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户编号
     */
    private Integer userId;

    /**
     * 店铺id
     */
    private Integer shopId;

    /**
     * 浏览时间
     */
    private LocalDateTime footprintTime;

    /**
     * 备用字段
     */
    private String prepare;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }
    public LocalDateTime getFootprintTime() {
        return footprintTime;
    }

    public void setFootprintTime(LocalDateTime footprintTime) {
        this.footprintTime = footprintTime;
    }
    public String getPrepare() {
        return prepare;
    }

    public void setPrepare(String prepare) {
        this.prepare = prepare;
    }

    @Override
    public String toString() {
        return "MyFootprint{" +
            "id=" + id +
            ", userId=" + userId +
            ", shopId=" + shopId +
            ", footprintTime=" + footprintTime +
            ", prepare=" + prepare +
        "}";
    }
}
